TreeLeafQ
TreeLeafQ[tree] gives True if tree is a Tree object with no children, and gives False otherwise.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.
TreeLeafQ[tree] gives True if tree is a Tree object with no children, and gives False otherwise.
Please visit the official Wolfram Language Reference for more details and examples on core symbols.